
package com.x52im.rbchat.logic.search.viewholder;

import android.view.View;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView;
import com.x52im.rbchat.R;

/**
 * "查看更多"item的viewHolder对象实现类。
 *
 * @author JackJiang
 * @since 8.2
 */
public class SeeMoreViewHolder extends RecyclerView.ViewHolder {

    /** 查看更多文本信息显示组件 */
    private TextView tvSeeMore = null;

    public SeeMoreViewHolder(View itemView) {
        super(itemView);
        this.tvSeeMore = itemView.findViewById(R.id.search_result_item_see_more_descView);
    }

    /**
     * 由RecycleView的adapter中的onBind...()方法调用。
     *
     * @param category 标题文本
     */
    public void onBind(String category) {
        tvSeeMore.setText("查看更多" + category);
    }
}
